if (alt < 1.0e24) {
res->altitude = alt;
#if GDB_DEBUG
- DBG(GDB_DBG_WPTe, 1)
+ DBG(GDB_DBG_WPTe, true)
printf(MYNAME "-wpt \"%s\" (%d): Altitude = %.1f\n",
qPrintable(res->shortname), wpt_class, alt);
#endif
}
}
#if GDB_DEBUG
- DBG(GDB_DBG_WPT, 1)
+ DBG(GDB_DBG_WPT, true)
printf(MYNAME "-wpt \"%s\": coordinates = %c%0.6f %c%0.6f\n",
qPrintable(res->shortname),
res->latitude < 0 ? 'S' : 'N', res->latitude,
if (FREAD_C == 1) {
res->set_proximity(FREAD_DBL);
#if GDB_DEBUG
- DBG(GDB_DBG_WPTe, 1)
+ DBG(GDB_DBG_WPTe, res->proximity_has_value())
printf(MYNAME "-wpt \"%s\" (%d): Proximity = %.1f\n",
- qPrintable(res->shortname), wpt_class, res->proximity / 1000);
+ qPrintable(res->shortname), wpt_class, res->proximity_value() / 1000);
#endif
}
int display = FREAD_i32;
#if GDB_DEBUG
- DBG(GDB_DBG_WPTe, 1)
+ DBG(GDB_DBG_WPTe, true)
printf(MYNAME "-wpt \"%s\" (%d): display = %d\n",
qPrintable(res->shortname), wpt_class, display);
#endif
if (FREAD_C == 1) {
res->set_depth(FREAD_DBL);
#if GDB_DEBUG
- DBG(GDB_DBG_WPTe, 1)
+ DBG(GDB_DBG_WPTe, res->depth_has_value())
printf(MYNAME "-wpt \"%s\" (%d): Depth = %.1f\n",
- qPrintable(res->shortname), wpt_class, res->depth);
+ qPrintable(res->shortname), wpt_class, res->depth_value());
#endif
}
garmin_fs_t::set_duration(gmsd, duration);
res->notes = QStringLiteral("[%1]").arg(gdb_to_ISO8601_duration(duration));
#if GDB_DEBUG
- DBG(GDB_DBG_WPTe, 1)
+ DBG(GDB_DBG_WPTe, true)
printf(MYNAME "-wpt \"%s\" (%d): duration = %u\n",
qPrintable(res->shortname), wpt_class, duration);
#endif
if (!str.isEmpty()) {
waypt_add_url(res, str, nullptr);
#if GDB_DEBUG
- DBG(GDB_DBG_WPTe, 1)
+ DBG(GDB_DBG_WPTe, true)
printf(MYNAME "-wpt \"%s\" (%d): url(%d) = %s\n",
qPrintable(res->shortname), wpt_class, url_ct - i, qPrintable(str));
#endif
if (FREAD_C == 1) {
res->set_temperature(FREAD_DBL);
#if GDB_DEBUG
- DBG(GDB_DBG_WPTe, 1)
+ DBG(GDB_DBG_WPTe, res->temperature_has_value())
printf(MYNAME "-wpt \"%s\" (%d): temperature = %.1f\n",
- qPrintable(res->shortname), wpt_class, res->temperature);
+ qPrintable(res->shortname), wpt_class, res->temperature_value());
#endif
}
int points = FREAD_i32;
#if GDB_DEBUG
- DBG(GDB_DBG_RTE, 1)
+ DBG(GDB_DBG_RTE, true)
printf(MYNAME "-rte \"%s\": loading route with %d point(s)...\n",
qPrintable(rte->rte_name), points);
#endif
il_anchor = il_step;
#if GDB_DEBUG
- DBG(GDB_DBG_RTEe, 1) {
+ DBG(GDB_DBG_RTEe, true) {
printf(MYNAME "-rte_il \"%s\" (%d of %d): %c%0.6f %c%0.6f\n",
qPrintable(wpt->shortname), j + 1, links,
il_step->lat < 0 ? 'S' : 'N', il_step->lat,
}
}
#if GDB_DEBUG
- DBG(GDB_DBG_RTE, 1)
+ DBG(GDB_DBG_RTE, true)
printf(MYNAME "-rte_pt \"%s\": coordinates = %c%0.6f, %c%0.6f\n",
qPrintable(wpt->shortname),
wpt->latitude < 0 ? 'S' : 'N', wpt->latitude,
driving_speed[4] = FREAD_DBL;
FREAD(tbuf, 8); /* unknown bytes */
#if GDB_DEBUG
- DBG(GDB_DBG_RTE, 1)
+ DBG(GDB_DBG_RTE, true)
printf(MYNAME "-rte_pt: autoroute info: route style %d, calculation type %d, vehicle type %d, road selection %d\n"
" driving speeds (kph) %.0f, %.0f, %.0f, %.0f, %.0f\n",
route_style, calc_type, vehicle_type, road_selection,